[−][src]Crate druid_shell
Platform abstraction for druid toolkit.
druid-shell
is an abstraction around a given platform UI & application
framework. It provides common types, which then defer to a platform-defined
implementation.
Re-exports
pub use kurbo; |
pub use piet_common as piet; |
Macros
accel | Convenience macro for defining accelerator tables. |
Structs
Application | The top level application object. |
Clipboard | A handle to the system clipboard. |
ClipboardFormat | Data coupled with a type identifier. |
Counter | An incrementing counter for generating unique ids. |
FileDialogOptions | Options for file dialogs. |
FileInfo | Information about a file to be opened or saved. |
FileSpec | A description of a filetype, for specifiying allowed types in a file dialog. |
HotKey | A description of a keyboard shortcut. |
IdleHandle | A handle that can enqueue tasks on the window loop. |
IdleToken | A token that uniquely identifies a idle schedule. |
KeyEvent | A keyboard event, generated on every key press and key release. |
KeyModifiers | Keyboard modifier state, provided for events. |
Menu | A menu object. |
MouseButtons | A set of |
MouseEvent | Information about the mouse event. |
Scale | Coordinate scaling between pixels and display points. |
ScaledArea | A specific area scaling state. |
TimerToken | A token that uniquely identifies a running timer. |
WindowBuilder | A builder type for creating new windows. |
WindowHandle | A handle to a platform window object. |
Enums
Cursor | Mouse cursors. |
Error | Shell errors. |
KeyCode | A platform-independent key identifier. |
KeyCompare | Something that can be compared with a keyboard key. |
MouseButton | An indicator of which mouse button was pressed. |
RawMods | A representation of the active modifier keys. |
SysMods | A platform-agnostic representation of keyboard modifiers, for command handling. |
Traits
AppHandler | A top-level handler that is not associated with any window. |
Scalable | The |
WinHandler | App behavior, supplied by the app. |
Type Definitions
FormatId | A type identifer for the system clipboard. |
Text | The platform text factory, reexported from piet. |